<%@page import="java.util.List"%>
<%@page import="beans.FAQbean"%>
<%@page import="dao.FAQ"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <style>
            a {text-decoration: none; font-size: 18px;}
            a:hover {color: red; font-size: 20px;}
        </style>
    </head>
    <body>
        <h2>FAQ</h2>
        <% FAQ faqB = new FAQ();
            List<FAQbean> listFaq = faqB.showFAQ();
            for (FAQbean FBean : listFaq) {
        %>
        <a href="student.jsp?page=FAQdetail&id=<%= FBean.getFaq_id()%>"  ><%= FBean.getFaq_question()%></a> </br>
        <%  }%>     
    </body>
</html>
